package com.hong.spring.common.order;

import org.springframework.context.annotation.Bean;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Auther: csh
 * @Date: 2020/7/14 17:44
 * @Description:
 */
@Component
@Order(0)
public class Orders2 {


    @Bean
    public OrderService2 order2(){
        System.out.println("object2被加载了！");
        return new OrderService2();
    }
}
